﻿using System.Data;
using MyWeb.Data;

namespace MyWeb.Business
{
    public class ProductImgService
    {
        private readonly ProductImgController _productImgController = new ProductImgController();

        #region [ProductImg_GetByAll]

        public DataTable ProductImg_GetByAll()
        {
            return _productImgController.ProductImg_GetByAll();
        }

        #endregion

        #region [ProductImg_GetByProductId]

        public DataTable ProductImg_GetByProductId(string prId)
        {
            return _productImgController.ProductImg_GetByProductId(prId);
        }

        #endregion

        #region [ProductImg_Insert]

        public void ProductImg_Insert(ProductImgInfo info)
        {
            _productImgController.ProductImg_Insert(info);
        }

        #endregion

        #region [ProductImg_Update]

        public void ProductImg_Update(ProductImgInfo info)
        {
            _productImgController.ProductImg_Update(info);
        }

        #endregion

        #region [ProductImg_Delete]

        public void ProductImg_Delete(string id)
        {
            _productImgController.ProductImg_Delete(id);
        }

        #endregion
    }
}